<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="main">
<head>
    <meta charset="UTF-8">
    <title>新增用户信息</title>
    <!-- Bootstrap -->
    <link th:href="@{/css/bootstrap.min.css}" href="../static/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link th:href="@{/css/font-awesome.min.css}" href="../static/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link th:href="@{/css/nprogress.css}" href="../static/css/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link th:href="@{/css/green.css}" href="../static/css/green.css" rel="stylesheet">
    <!-- Select2 -->
    <link th:href="@{/css/select2.min.css}" href="../static/css/select2.min.css" rel="stylesheet">
    <!-- Custom Theme Style -->
    <link th:href="@{/css/custom.min.css}" href="../static/css/custom.min.css" rel="stylesheet">

    <!-- jQuery -->
    <script th:src="@{/js/jquery.min.js}" src="../static/js/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script th:src="@{/js/bootstrap.min.js}" src="../static/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script th:src="@{/js/fastclick.js}" src="../static/js/fastclick.js"></script>
    <!-- NProgress -->
    <script th:src="@{/js/nprogress.js}" src="../static/js/nprogress.js"></script>
    <!-- iCheck -->
    <script th:src="@{/js/icheck.min.js}" src="../static/js/icheck.min.js"></script>
    <!-- Select2 -->
    <script th:src="@{/js/select2.full.min.js}" src="../static/js/select2.full.min.js"></script>
    <!-- Parsley -->
    <script th:src="@{/js/parsley.min.js}" src="../static/js/parsley.min.js"></script>
    <!-- Autosize -->
    <script th:src="@{/js/autosize.min.js}" src="../static/js/autosize.min.js"></script>
    <!-- Custom Theme Scripts -->
    <script th:src="@{/js/custom.min.js}" src="../static/js/custom.min.js"></script>
    <!-- Useradd -->
    <script th:src="@{/static/localjs/useradd.js}" src="../../static/localjs/useradd.js"></script>
</head>
<body>
<div layout:fragment="content">
    <div class="clearfix"></div>
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                    <h2>新增用户信息<i class="fa fa-user"></i>
                        <small th:text="${session.loginUser.usrName}"></small>
                        <ul class="nav navbar-right panel_toolbox">
                            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                            </li>
                            <li><a class="close-link"><i class="fa fa-close"></i></a>
                            </li>
                        </ul>
                    </h2>
                    <div class="clearfix"></div>
                </div>

                <div class="x_content">
                    <form class="form-horizontal form-label-left" th:action="@{/user/save}" action="list.html" method="post">
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">用户名 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="usrName" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1" name="usrName"
                                       required="required"
                                       placeholder="请输入用户名" type="text">
                            </div>
                        </div>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">密码<span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="usrPassword" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1" name="usrPassword"
                                       required="required"
                                       placeholder="请输入密码" type="password">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">用户角色<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <select name="role" id="roles" class="form-control" required="required">
                                </select>
                            </div>
                        </div>
                        <div class="ln_solid"></div>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-3">
                                <button id="send" type="submit" class="btn btn-success">保存</button>
                                <button type="button" class="btn btn-primary" id="back"
                                        onclick="javascript:window.history.back();">返回
                                </button>
                                <br/><br/>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>